from django.db import models

# Create your models here.

class Event(models.Model):
    """Definition of Event Class"""
    event_name = models.CharField(max_length=1000L,)
    start_date_time = models.DateTimeField()
    end_date_time = models.DateTimeField()
    duration_minutes = models.IntegerField()
    start_addr = models.CharField(max_length=20L,)
    end_addr = models.CharField(max_length=20L,)
    important_lever = models.IntegerField()
    weather_lever  = models.IntegerField()

    def __unicode__(self):
        return str([self.event_name, self.start_date_time, self.end_date_time, self.duration_minutes])

class Schedule(models.Model):
    event_name = models.CharField(max_length=1000L,)
    start_date_time = models.DateTimeField()
    end_date_time = models.DateTimeField()
    start_addr = models.CharField(max_length=20L,)
    end_addr = models.CharField(max_length=20L,) 
    def __unicode__(self):
        return self.event_name